<!-- Main Header -->
<?php
$admin = $this->session->userdata('adminDetail');
?>
<header class="main-header">

    <!-- Logo -->
    <a href="/home" class="logo">
        <!-- mini logo for sidebar mini 50x50 pixels -->
        <span class="logo-mini"><b style="color: #00a65a;">QQ</b>G</span>
        <!-- logo for regular state and mobile devices -->
        <span class="logo-lg"><b style="color: #00a65a;">QiuQiu</b>Gu</span>
    </a>

    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" role="navigation">
        <!-- Sidebar toggle button-->
        <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
        </a>
        <!-- Navbar Right Menu -->
        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
                <li class="active"><a href="/admin/user/password">修改密码 <span class="sr-only">(current)</span></a></li>
                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <!-- The user image in the navbar-->
                        <img src="<?=$admin['avatar']?>" onerror="this.src='/assets/admin/img/nothumb.png'" class="user-image" style="border: 1px solid #EFEFEF;" alt="User Image">
                        <!-- hidden-xs hides the username on small devices so only the image appears. -->
                        <span class="hidden-xs"><?=$admin['nickName']?></span>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- The user image in the menu -->
                        <li class="user-header">
                            <img src="<?=$admin['avatar']?>" onerror="this.src='/assets/admin/img/nothumb.png'" class="img-circle" alt="User Image">

                            <p>
                                <?=$admin['nickName']?> - <?=$admin['role']?>
                                <small>上次登录 <?=$admin['lastTime']?></small>
                            </p>
                        </li>
                        <!-- Menu Footer-->
                        <li class="user-footer">
                            <!--
                            <div class="pull-left">
                                <a href="javascript:void(0);" class="btn btn-default btn-flat">个人信息</a>
                            </div>
                            -->
                            <div class="pull-right">
                                <a href="/login/logout" class="btn btn-default btn-flat">退出登录</a>
                            </div>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
</header>